package com.bear.sgg.springboot_06_web.ThreeComponent;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassNmae MyServlet
 * @Description 自定义的Servlet
 * @Author bear
 * @Date 2020/3/12 0012 下午 3:13
 */
public class MyServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.getWriter().write("hello my servlet");
    }

}
